package mailService

import (
	"gitee.com/yangguoliang001/go-gin-vue3/QO"
	"github.com/gin-gonic/gin"
	"github.com/go-redis/redis/v7"
	"gorm.io/gorm"
)

type MailService interface {
	SendEmailService(c *gin.Context, mailReq QO.EmailReqQO) error
}

type mailService struct {
	Cache *redis.Client
}

func New(cache *redis.Client, db *gorm.DB) MailService {
	return &mailService{
		Cache: cache,
	}
}
